package com.maiji.cloud.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.maiji.cloud.entities.login.AppUser;
import com.maiji.cloud.entities.login.Label;
import com.maiji.cloud.entities.login.UploadRecord;
import com.maiji.cloud.request.BaseDataReqDto;
import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.IdInputDto;
import com.maiji.cloud.response.BaseDataResDto;
import com.maiji.cloud.response.login.UserInfoResDto;

@FeignClient(value = "MAIJICLOUD-APPLOGIN")
public interface AppLoginFeignService {
	@PostMapping("/user/getUserInfoWithUserId")
	UserInfoResDto getUserInfoWithUserId(@RequestBody BaseInputDto<IdInputDto> inputDto);
	 /**
     * 
     * @param id
     * @return
     */
    @PostMapping("/common/getUploudImgs")
    public List<UploadRecord>  getUploudImgs(@RequestParam("id")String id,@RequestParam("isMain")boolean isMain);
    
    /**
     * 根据标签id获得标签集合
     * @param baseDataReqDto
     * @return
     */
    @PostMapping("/common/getLabelsByIds")
    public List<Label> getLabelsByIds (@RequestBody BaseInputDto<String> inputDto);
    
    /**
	 * 分销获得上级用户信息
	 * @param param
	 * @return
	 */
	@PostMapping("/user/getAppUer")
	public BaseDataResDto<AppUser> getAppUer(@RequestBody BaseDataReqDto<String> param);
    
}
